// Copyright (C) 2025 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

@import "../../../assets/theme";

.pf-node-graph {
  position: relative;
  height: 100%;
  overflow: auto;
  padding: 0.625rem;
  border: 1px solid var(--pf-color-border);
  border-radius: 8px;
  background-color: var(--pf-color-background);
}

.pf-node-graph-add-button-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 40px;
}

.pf-node-graph-add-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.pf-node-graph__controls {
  display: flex;
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  gap: 0.5rem;
  z-index: 10;
}

.pf-hero {
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 0.5rem;

  .hero-title {
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 1.1em;
    color: var(--pf-color-text-muted);
  }
}

.pf-node-box-port {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--pf-color-border);
  border-radius: 50%;
}

.pf-node-box-port-top {
  top: -5px;
  left: 50%;
  margin-left: -5px;
}

.pf-node-box-port-bottom {
  bottom: -5px;
}

.pf-node-box-port-bottom {
  bottom: -5px;
}

.pf-source-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: 200px;
  text-align: center;
  cursor: pointer;

  &:hover {
    background-color: color_hover(transparent);
  }

  .pf-icon {
    font-size: 2em;
  }

  h3 {
    font-size: 1.1rem;
    font-weight: 500;
  }

  p {
    font-size: 0.9rem;
    flex-grow: 1;
    color: var(--pf-color-text-muted);
  }
}
